Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
'use strict';
var q = require('qiao-file');
var test = function(){
var folderPath = './test/';
var filePath = './qiao-file.js'
// cp folder
q.cp(folderPath, './test1');
// cp file
q.cp(filePath, './1.js');
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var oldPath = './test';
var newPath = './test1'
var res = q.mv(oldPath, newPath);
console.log(res);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var folderPath = 'd:/test1/';
var filePath = 'd:/test.png'
// rm folder
q.rm(folderPath);
// rm file
q.rm(filePath);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var foldersAndFiles = q.lsdir('z:/workspaces/qiao.plugin.coder/');
console.log(foldersAndFiles);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var fileTree = q.lstree('./', ['node_modules']);
console.log(JSON.stringify(fileTree));
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var folder = 'd:/test1/test2/test3/test.js';
q.mkdir(folder);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var filePath = 'd:/test1/test2/test.js';
var s = q.extname(filePath);
console.log(s);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var filePath = './index.js';
var s = q.readFile(filePath);
console.log(s);
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var filePath = './1.js';
q.writeFile(filePath, '2');
};
test();
'use strict';
var q = require('qiao-file');
var test = function(){
var fpath = 'z:/workspaces/qiao.plugin.coder/lib/qiao.plugin.coder.js';
var s = q.isExists(fpath);
console.log(s);
};
test();
FAQs
nodejs file tool
The npm package qiao-file receives a total of 58 weekly downloads. As such, qiao-file popularity was classified as not popular.
We found that qiao-file demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.